import request from '@/utils/request'

// 查询房屋收费标准列表
export function listRoomNorm(query) {
  return request({
    url: '/payfee/roomNorm/list',
    method: 'get',
    params: query
  })
}

// 查询房屋收费标准详细
export function getRoomNorm(roomNormId) {
  return request({
    url: '/payfee/roomNorm/' + roomNormId,
    method: 'get'
  })
}

// 新增房屋收费标准
export function addRoomNorm(data) {
  return request({
    url: '/payfee/roomNorm',
    method: 'post',
    data: data
  })
}

// 修改房屋收费标准
export function updateRoomNorm(data) {
  return request({
    url: '/payfee/roomNorm',
    method: 'put',
    data: data
  })
}

// 删除房屋收费标准
export function delRoomNorm(roomNormId) {
  return request({
    url: '/payfee/roomNorm/' + roomNormId,
    method: 'delete'
  })
}

// 导出房屋收费标准
export function exportRoomNorm(query) {
  return request({
    url: '/payfee/roomNorm/export',
    method: 'get',
    params: query
  })
}